package com.terrynoya.fight.data.parser.sff
{
	
	import flash.display.DisplayObject;
	import flash.geom.Point;

	public class SpriteItem
	{
		private var _view:DisplayObject;
		
		private var _info:SpriteItemVO;
		
		public function SpriteItem(view:DisplayObject,info:SpriteItemVO)
		{
			this._view = view;
			this._info = info;
		}

		public function get info():SpriteItemVO
		{
			return _info;
		}

		public function get view():DisplayObject
		{
			return _view;
		}
		
		public function get id() : int 
		{
			return this._info.id;
		}
		
		public function get groupId():int 
		{
			return this._info.groupId;
		}
		
		public function showAt(pos:Point):void
		{
			view.x = pos.x - this._info.axis.x;
			view.y = pos.y - this._info.axis.y;
		}
	}
}